package com.test.pattern.visitor;

/**
 * @ClassName: Dog
 * @description: 具体元素角色类(宠物狗)
 * @author: Mr du
 * @create: 2024-03-17 22:30
 */
public class Dog implements Animal{

    @Override
    public void accept(Person person) {
        person.feed(this);
        System.out.println("好好吃，汪汪汪！！！");
    }
}
